{{#let @owner.owner as |ownerRecord|}}
  <td>
    {{#unless isOwnerInActive}}
      {{avatars/avatar-image avatar=@owner.avatar}}
    {{/unless}}

    {{ownerRecord.userName}}

    {{#if isOwnerInActive}}

      <span class="nacho-button nacho-button--small dataset-author-record__indicator--inactive">
        Inactive
      </span>

    {{/if}}
  </td>

  <td>
    {{ownerRecord.name}}
  </td>

  <td>
    {{ownerRecord.idType}}
  </td>

  {{!-- hides source column for confirmed owners--}}
  {{#unless isOwnerMutable}}

    <td>
      {{ownerRecord.source}}
    </td>

  {{/unless}}

  <td>
    {{ember-selector
      class=(unless isOwnerMutable "nacho-select--hidden-state")
      values=ownerTypes
      selected=ownerRecord.type
      disabled=(not isOwnerMutable)
      selectionDidChange=(action "changeOwnerType")
    }}
  </td>

  <td>
    {{#if isOwnerMutable}}

      <button
        class="nacho-button nacho-button--small remove-dataset-author"
        {{action "onRemoveOwner"}}>
        <i class="fa fa-trash"
           aria-label="Remove Owner"></i>
      </button>

    {{else}}

      {{#if isConfirmedSuggestedOwner}}

        <span
          class="nacho-button nacho-button--small dataset-author-record__indicator--disabled">
          Added
        </span>

      {{else}}

        <button
          class="nacho-button nacho-button--small confirm-suggested-dataset-author"
          {{action "confirmOwner"}}>
          <i class="fa fa-plus" title="Add an Owner"></i>
        </button>

      {{/if}}

    {{/if}}
  </td>
{{/let}}
